package com.ccrfid.rmc6.entity.toolcase;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "tool_case")
public class ToolCaseEntity {
    private Long id;
    private String toolCaseSn;
    private String toolCaseName;
    private Long cardNumber;
    private Timestamp registerTime;
    private Long orgId;
    private String orgName;
    private Long personnelId;
    private String personnelName;
    private Integer stationary;
    private Integer takeOut;
    private Integer enabled;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "tool_case_sn", nullable = true, length = 45)
    public String getToolCaseSn() {
        return toolCaseSn;
    }

    public void setToolCaseSn(String toolCaseSn) {
        this.toolCaseSn = toolCaseSn;
    }

    @Basic
    @Column(name = "tool_case_name", nullable = true, length = 100)
    public String getToolCaseName() {
        return toolCaseName;
    }

    public void setToolCaseName(String toolCaseName) {
        this.toolCaseName = toolCaseName;
    }

    @Basic
    @Column(name = "card_number", nullable = true)
    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Basic
    @Column(name = "register_time", nullable = false)
    public Timestamp getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Timestamp registerTime) {
        this.registerTime = registerTime;
    }

    @Basic
    @Column(name = "org_id", nullable = true)
    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    @Basic
    @Column(name = "org_name", nullable = true, length = 64)
    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    @Basic
    @Column(name = "personnel_id", nullable = false)
    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    @Basic
    @Column(name = "personnel_name", nullable = false, length = 32)
    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    @Basic
    @Column(name = "is_stationary", nullable = false)
    public Integer getStationary() {
        return stationary;
    }

    public void setStationary(Integer stationary) {
        this.stationary = stationary;
    }

    @Basic
    @Column(name = "is_take_out", nullable = false)
    public Integer getTakeOut() {
        return takeOut;
    }

    public void setTakeOut(Integer takeOut) {
        this.takeOut = takeOut;
    }

    @Basic
    @Column(name = "is_enabled", nullable = false)
    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }
}
